import Vue from "vue";
import App from "./App.vue";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import router from "./router";
import axios from "axios";
import VueAxios from "vue-axios";
import store from "./store"
import {baseURL} from "config"

Vue.use(ElementUI);
Vue.use(VueAxios, axios);
// Vue.prototype.$axios = axios;
Vue.config.productionTip = false;

axios.defaults.baseURL = baseURL

new Vue({
  store,
  router,
  render: (h) => h(App),
}).$mount("#app");

axios.interceptors.response.use(response => {
  return response;
  },error => {
  return Promise.reject(error);
  });


